package com.basics.api.response.socket;

import com.alibaba.fastjson.JSONObject;
import com.basics.api.enums.socket.MessageEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;


@Data
public class MessageData implements Serializable {

    @ApiModelProperty(value = "消息类型")
    private MessageEnum messageType;

    @ApiModelProperty(value = "组织id")
    private Long organizationId;

    @ApiModelProperty(value = "消息内容(json格式)")
    private JSONObject messageContent;

    public MessageData() {

    }
    public MessageData(MessageEnum messageType, JSONObject messageContent,Long organizationId) {
        this.messageType = messageType;
        this.messageContent = messageContent;
        this.organizationId = organizationId;
    }
}
